package com.m2bshop.shop.service.WalletService;


import com.m2bshop.shop.pojo.Transaction;
import com.m2bshop.shop.pojo.Wallet;

import java.util.List;

public interface WalletService {
    Wallet getWalletInfo(int id);//通过id查询全部信息
    String InsertNewWallet(Wallet wallet);//插入新钱包
    String UpdateBalanceByBank(Wallet wallet,int type,double number,int bankid);//提现或充值
    String UpdateBalanceByExpense(int userid,double number);
    String UpdateWallet(Wallet wallet);
    int getUserWallet(int userid);//查找是否拥有钱包
}
